package com.party.core.model.crowdfund;

/**
 * @Description: 带着机构辅助表
 * @Author: yangshoukun
 * @Date: 2018/7/5 17:01
 */
public class CrowdfundEventWithMemberPartner extends CrowdfundEvent {
    private static final long serialVersionUID = -1043929472053466104L;

    // 合作商类型, 0: 系统客户, 1: 大客户, 2: 地接客户, 3: 运营客户 4：注册客户
    private Integer partnerType;
    // 绑定页面的二维码链接
    private String bindQrCode;
    // 合作商备注
    private String partnerRemark;

    public Integer getPartnerType() {
        return partnerType;
    }

    public void setPartnerType(Integer partnerType) {
        this.partnerType = partnerType;
    }

    public String getBindQrCode() {
        return bindQrCode;
    }

    public void setBindQrCode(String bindQrCode) {
        this.bindQrCode = bindQrCode;
    }

    public String getPartnerRemark() {
        return partnerRemark;
    }

    public void setPartnerRemark(String partnerRemark) {
        this.partnerRemark = partnerRemark;
    }

    @Override
    public String toString() {
        return "CrowdfundEventWithMemberPartner{" +
                "partnerType=" + partnerType +
                ", bindQrCode='" + bindQrCode + '\'' +
                ", partnerRemark='" + partnerRemark + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof CrowdfundEventWithMemberPartner)) return false;
        if (!super.equals(o)) return false;

        CrowdfundEventWithMemberPartner that = (CrowdfundEventWithMemberPartner) o;

        return partnerType != null ? partnerType.equals(that.partnerType) : that.partnerType == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (partnerType != null ? partnerType.hashCode() : 0);
        return result;
    }

}
